import request from "./request";

export function initNewsList(pageNum,pageSize){
    const params =new URLSearchParams()
    params.append("pageNum",pageNum)
    params.append("pageSize",pageSize)
    return request.post("https://showme.myhope365.com/api/cms/article/open/hot/list",params)




    // return dispatch=>{
    //     const parms =new URLSearchParams()
    //     parms.append("pageNum",pageNum)
    //     parms.append("pageSize",pageSize)
    //     axios.post("https://showme.myhope365.com/api/cms/article/open/hot/list",parms).then(
    //         res=>{
    //             console.log(res)
    //             dispatch({
    //                 type:"newsList",
    //                 list:res.data.rows
    //             })
    //         }
    //     )
    // }
}
